#发的方式都发生的
import requests

headers = {
    'Accept-Encoding': 'gzip, deflate',
    'Accept-Language': 'zh-CN,zh;q=0.9,en;q=0.8',
    'User-Agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36',
    'Accept': 'text/html, */*; q=0.01',
    'Referer': 'http://www.wanfangdata.com.cn/search/searchList.do?searchType=all&showType=&pageSize=&searchWord=cell&isTriggerTag=',
    'X-Requested-With': 'XMLHttpRequest',
    'Connection': 'keep-alive',
}

params = (
    ('beetlansyId', 'aysnsearch'),
    ('searchType', 'all'),
    ('pageSize', '20'),
    ('page', '1'),
    ('searchWord', 'cell'),
    ('order', 'correlation'),
    ('showType', 'detail'),
    ('isCheck', 'check'),
    ('isHit', ''),
    ('isHitUnit', ''),
    ('firstAuthor', 'false'),
    ('rangeParame', ''),
    ('navSearchType', 'all'),
)

response = requests.get('http://www.wanfangdata.com.cn/search/searchList.do', headers=headers, params=params)
print(response.text)


#NB. Original query string below. It seems impossible to parse and
#reproduce query strings 100% accurately so the one below is given
#in case the reproduced version is not "correct".
# response = requests.get('http://www.wanfangdata.com.cn/search/searchList.do?beetlansyId=aysnsearch&searchType=all&pageSize=20&page=3&searchWord=cell&order=correlation&showType=detail&isCheck=check&isHit=&isHitUnit=&firstAuthor=false&rangeParame=&navSearchType=all', headers=headers, cookies=cookies)
